package com.droowa.domain;

import java.io.Serializable;

public class OrderList implements Serializable{
	private int orderNumber;
	private String orderName;
	private String orderDate;
	private String completeName;
	private String completePrice;
	private String custId;
	
	public OrderList(){}
	
	public OrderList(int orderNumber, String orderName, String orderDate, String completeName, String completePrice, String custId) {
		this.orderNumber = orderNumber;
		this.orderName = orderName;
		this.orderDate = orderDate;
		this.completeName = completeName;
		this.completePrice = completePrice;
		this.custId = custId;
	}

	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderName() {
		return orderName;
	}
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}
	public String getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	public String getCompleteName() {
		return completeName;
	}
	public void setCompleteName(String completeName) {
		this.completeName = completeName;
	}
	public String getCompletePrice() {
		return completePrice;
	}
	public void setCompletePrice(String completePrice) {
		this.completePrice = completePrice;
	}
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((completeName == null) ? 0 : completeName.hashCode());
		result = prime * result
				+ ((completePrice == null) ? 0 : completePrice.hashCode());
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		result = prime * result
				+ ((orderDate == null) ? 0 : orderDate.hashCode());
		result = prime * result
				+ ((orderName == null) ? 0 : orderName.hashCode());
		result = prime * result + orderNumber;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderList other = (OrderList) obj;
		if (completeName == null) {
			if (other.completeName != null)
				return false;
		} else if (!completeName.equals(other.completeName))
			return false;
		if (completePrice == null) {
			if (other.completePrice != null)
				return false;
		} else if (!completePrice.equals(other.completePrice))
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		if (orderDate == null) {
			if (other.orderDate != null)
				return false;
		} else if (!orderDate.equals(other.orderDate))
			return false;
		if (orderName == null) {
			if (other.orderName != null)
				return false;
		} else if (!orderName.equals(other.orderName))
			return false;
		if (orderNumber != other.orderNumber)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "OrderList [orderNumber=" + orderNumber + ", orderName="
				+ orderName + ", orderDate=" + orderDate + ", completeName="
				+ completeName + ", completePrice=" + completePrice
				+ ", custId=" + custId + "]";
	}
	
}
